import request from '../../utils/request'

/**
 * 新增杂费
 *
 */
export async function addIncidentals(data) {
    return request(apiPath.mc + "/api/incidentals", {
        method: 'post',
        data
    });
}


/**
 * 修改杂费
 *
 */
export async function updateIncidentals(data) {
    return request(apiPath.mc + "/api/incidentals", {
        method: 'put',
        data
    });
}

/**
 * 删除杂费
 *
 */
export async function deleteById({ id }) {
    return request(apiPath.mc + "/api/incidentals/" + id, {
        method: 'delete'
    });
}

/**
 *获取杂费
 *
 */
export async function getById({ id }) {
    return request(apiPath.mc + "/api/incidentals/" + id, {
        method: 'get'
    });
}


/**
 * 分页获取杂费
 *
 */
export async function getListForPage({ feeCode, feeName, feeType, page }) {
    return request(apiPath.mc + "/api/incidentals", {
        method: 'get',
        data: { feeCode, feeName, feeType, page: page.page, size: page.size }
    });
}

/**
 * 查询杂费List
 *
 */
export async function getIncidentalsAllList(){
	return request(apiPath.mc + "/api/incidentals/all",{
		method:'get'
	});
}




